import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * User: Alex
 * Date: 12.06.13
 * Time: 21:22
 * To change this template use File | Settings | File Templates.
 */
public class Desert extends Space {

    private Essence essence;
    Desert() {
        super();
        essence = new Essence(getWidth(), getLength());
    }

    Desert(int widthSpace, int lengthSpace) {
        super(widthSpace, lengthSpace);
        essence = new Essence(widthSpace, lengthSpace);
    }

    public void putInSpace(String type, int number) {
        essence.burnEssence(type, number);
    }

    public void lifeLoop(int days) {
        int countLoop = 0;
        while (countLoop < days) {
            System.out.println("Loop: "+(countLoop + 1));
            essence.moveAllSubjectInDesert();
            System.out.println("Loop: "+(countLoop + 1));
            System.out.println("___________________");
            countLoop++;
        }
    }



}
